import Taro from '@tarojs/taro-rn';
import React from 'react';
import { Component } from "@tarojs/taro-rn";
import { View, Image, Text } from "@tarojs/components-rn";
import { getRuntime } from "../../utils/common";
import indexStyleSheet from "./index_styles";
import icon_05 from "../../assets/img/icon_05.png";
import icon_06 from "../../assets/img/icon_06.png";
import icon_08 from "../../assets/img/icon_08.png";
import icon_09 from "../../assets/img/icon_09.png";
import icon_10 from "../../assets/img/icon_10.png";
import icon_11 from "../../assets/img/icon_11.png";
import icon_12 from "../../assets/img/icon_12.png";
import icon_13 from "../../assets/img/icon_13.png";
import icon_14 from "../../assets/img/icon_14.png";
import icon_15 from "../../assets/img/icon_15.png";
// 全部服务
var _styleSheet = indexStyleSheet;
let Personnel = class Personnel extends Component {
  constructor(props) {
    super(props);
  }
  componentWillMount() {
    Taro.setNavigationBarTitle({ title: '全部服务' });
  }
  handelRouter(url = '/pages/index/index') {
    getRuntime().navigateTo(url);
  }
  render() {
    return <View style={_styleSheet["all-index"]}>
        <View style={_styleSheet["index-nav"]}>
          <View onClick={this.handelRouter.bind(this, '/pages/all_services/none')} style={_styleSheet["nav"]}>
            <Image src={icon_05} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>政府政务中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/legal/index')} style={_styleSheet["nav"]}>
            <Image src={icon_06} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>律政中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/finance/index')} style={_styleSheet["nav"]}>
            <Image src={icon_08} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>工程金融中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/business/index')} style={_styleSheet["nav"]}>
            <Image src={icon_09} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>工商服务中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/library/index')} style={_styleSheet["nav"]}>
            <Image src={icon_10} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>建务库中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/company_credit/index')} style={_styleSheet["nav"]}>
            <Image src={icon_11} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>企业信用中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/newest/personnel_center')} style={_styleSheet["nav"]}>
            <Image src={icon_12} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>工程人才中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/business_school/index')} style={_styleSheet["nav"]}>
            <Image src={icon_13} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>建企商学院</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/tendering/index')} style={_styleSheet["nav"]}>
            <Image src={icon_14} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>投招标中心</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/mall/index')} style={_styleSheet["nav"]}>
            <Image src={icon_15} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>新零售商城</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/all_services/none')} style={_styleSheet["nav"]}>
            <Image src={icon_15} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>建企OA办公</Text>
          </View>
          <View onClick={this.handelRouter.bind(this, '/pages/all_services/life')} style={_styleSheet["nav"]}>
            <Image src={icon_15} style={_styleSheet["nav-icon"]} />
            <Text style={_styleSheet["nav-title"]}>生活服务中心</Text>
          </View>
        </View>
      </View>;
  }
};

export default Personnel;